//菜单管理相关接口类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
//菜单与按钮数据的ts类型
export interface Permisston {
  id?: number
  createTime: string
  updateTime: string
  pid: number
  name: string
  code: string
  toCode: string
  type: number
  status: null
  level: number
  children?: PermisstonList
  select: boolean
}
export type PermisstonList = Permisston[]

//菜单权限与按钮权限数据的ts类型
export interface PermisstionResponseData extends ResponseData {
  data: PermisstonList
}
//添加与修改携带的参数的ts类型
export interface MenuParams {
  id?: number | string
  pid: number | string
  name: string
  code: string
  level: number | string
}
